package cn.tedu.admin.controller;

import cn.tedu.common.web.JsonResult;
import cn.tedu.system.pojo.param.WarehouseAddParam;
import cn.tedu.system.service.WarehousesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

public class WarehousesController {
    @Autowired
    WarehousesService service;

    @PostMapping("")
    public JsonResult add(WarehouseAddParam param) {
        Integer rows = service.addNew(param);
        return new JsonResult();
    }

    @PostMapping("")
    public JsonResult delete() {

        return new JsonResult();
    }

    @PostMapping("")
    public JsonResult update() {
        return new JsonResult();
    }

    @GetMapping("")
    public JsonResult get() {
        return new JsonResult();
    }
}

